<template>
  <div>
    <h2>登录页</h2>
    <!-- $route就是该组件的路由实例 -->
    <h3>{{ $route.query.username }} -- {{ $route.query.age }}</h3>
  </div>
</template>
 
<script>
export default {
  props: {},
  data() {
    return {}
  },

  created() {
    console.log(this.$route)
  },
  methods: {}
}
</script>

<style scoped>
</style>